﻿#include<iostream>
#include<locale>
using namespace std;
int main() {
	setlocale(LC_ALL, "chs");

	wchar_t wstr[0x5];
	wchar_t* wstr1 = new wchar_t[0x5];
	wscanf(L"%s", wstr);
	wcin >> wstr;
	wprintf(L"%s", wstr);
	cout << wcslen(wstr) << endl;

	char Name[0x5];
	printf("请输入你的名字:");
	scanf_s("%s", Name, 5);
	printf("你的名字是[%s]", Name);
	cout << strlen(Name) << endl;

	int x[0x10];
	char Name[0x10];
	cout << x << endl;//0000001A2156F980,相当于指针，输出内存地址
	cout << Name << endl;//烫烫烫烫烫烫烫烫烫，cout对于char类型会当作字符串处理，一直读取直到遇到\0结束
	printf("%s", Name);//烫烫烫烫烫烫烫烫烫
	printf("%X", Name);//E515FAD8


	char ins[100];
	int i = 0;
	cin >> ins;
	for (; ins[i] != '\0'; i++);
	cout << i << endl;;

}